//懒加载
// import Detail from '../components/...'  //公共组件
const Home = () =>
  import ('@/pages/Home/Home.vue')
const Business = () =>
  import ('@/pages/Business/Business.vue')
const Branch = () =>
  import ('@/pages/Branch/Branch.vue')
const Stockholder = () =>
  import ('@/pages/Stockholder/Stockholder.vue')
const Stockduty = () =>
  import ('@/pages/Stockduty/Stockduty.vue')
const Taxrating = () =>
  import ('@/pages/Taxrating/Taxrating.vue')
const Investment = () =>
  import ('@/pages/Investment/Investment.vue')
const Financing = () =>
  import ('@/pages/Financing/Financing.vue')
const Mortgage = () =>
  import ('@/pages/Mortgage/Mortgage.vue')
const Taxarrears = () =>
  import ('@/pages/Taxarrears/Taxarrears.vue')

const routes = [{
  path: '/',
  redirect: '/home'
},
{
  path: '/home',
  name: "home",
  components: {
    main: Home
  }
},
{
  path: '/home/business',
  name: "business",
  components: {
    main: Business
  },
  meta: {
    title: "工商信息"
  }
},
{
  path: '/home/branch',
  name: "branch",
  components: {
    main: Branch
  },
  meta: {
    title: "分支机构"
  }
},
{
  path: '/home/stockholder',
  name: "stockholder",
  components: {
    main: Stockholder
  },
  meta: {
    title: "股东信息"
  }
},
{
  path: '/home/stockduty',
  name: "stockduty",
  components: {
    main: Stockduty
  },
  meta: {
    title: "股权出质"
  }
},
{
  path: '/home/taxrating',
  name: "taxrating",
  components: {
    main: Taxrating
  },
  meta: {
    title: "税务评级"
  }
},
{
  path: '/home/investment',
  name: "investment",
  components: {
    main: Investment
  },
  meta: {
    title: "对外投资"
  }
},
{
  path: '/home/financing',
  name: "financing",
  components: {
    main: Financing
  },
  meta: {
    title: "融资项目"
  }
},
{
  path: '/home/mortgage',
  name: "mortgage",
  components: {
    main: Mortgage
  },
  meta: {
    title: "动产抵押"
  }
},
{
  path: '/home/taxarrears',
  name: "taxarrears",
  components: {
    main: Taxarrears
  },
  meta: {
    title: "欠税公告"
  }
}
]
export default routes;